/* Copyright (c) 2012 The Chromium Authors. All rights reserved.
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file. */

/* Google Drive welcome banners.*/

body.files-ng .drive-welcome-icon {
  background-image: url(../images/files/ui/drive_logo.svg);
  background-repeat: no-repeat;
}

.drive-welcome-links {
  flex: none;
  margin: 6px 0;
}

.drive-welcome .imitate-paper-button {
  background-color: white;
  color: rgb(79, 129, 232);
  font-size: 13px;
  font-weight: 500;
  margin: 0;
}

/* Header welcome banner. */
body.files-ng .drive-welcome.header {
  border-bottom: 1px solid var(--cr-separator-color, rgb(224, 224, 224));
  box-sizing: border-box;
  flex: none;
  height: 72px;
  opacity: 1;
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
  transition: height 300ms cubic-bezier(0.4, 0, 0.2, 1),
              opacity 150ms ease 50ms;
  visibility: visible;
}

body.files-ng .dialog-container:not([drive-welcome='header'])
.drive-welcome.header {
  height: 0;
  opacity: 0;
  visibility: hidden;
}

body.files-ng .drive-welcome.header .drive-welcome-wrapper {
  align-items: center;
  display: flex;
  flex-direction: row;
  height: 71px;
}

body.files-ng .drive-welcome.header .drive-welcome-icon {
  background-position: center;
  background-size: 32px 32px;
  border-radius: 4px;
  flex: none;
  height: 32px;
  margin-inline-end: 20px;
  margin-inline-start: 16px;
  width: 32px;
}

body.files-ng .drive-welcome.header .drive-welcome-message {
  z-index: 1;
}

body.files-ng .drive-welcome.header .drive-welcome-title {
  margin-bottom: 2px;
}

body.files-ng .drive-welcome.header .drive-welcome-text {
  display: inline;
}

body.files-ng .drive-welcome.header .drive-welcome-links {
  display: inline;
  margin-inline-start: 4px;
  z-index: 1;
}

.drive-welcome.header .drive-welcome-links > a {
  display: inline-block;
  outline-offset: -1px;
  padding: 0 4px;
}

html[dir='ltr'] .drive-welcome.header .banner-people {
  right: 38px;
}

html[dir='rtl'] .drive-welcome.header .banner-people {
  left: 38px;
}

body.files-ng .drive-welcome.header .plain-link {
  color: var(--google-blue-600);
}

/* Full page welcome banner. */
.drive-welcome.page {
  bottom: 0;
  flex: none;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.dialog-container:not([drive-welcome='page']) .drive-welcome.page {
  display: none;
}

.drive-welcome.page .cr-dialog-close {
  display: none;
}

.drive-welcome.page .drive-welcome-wrapper {
  align-items: center;
  background-color: white;
  bottom: 0;
  color: #333;
  display: flex;
  flex-direction: column;
  font-size: 120%;
  left: 0;
  overflow: hidden;
  position: absolute;
  right: 0;
  top: 0;
}

.drive-welcome.page .drive-welcome-icon {
  background-position: center;
  background-size: 88px 88px;
  height: 200px;
  left: 0;
  right: 0;
  top: 0;
  width: 100%;
}

.drive-welcome.page .drive-welcome-message {
  margin-inline-end: 10px;
  margin-inline-start: 10px;
  max-width: 525px;
}

.drive-welcome.page .drive-welcome-title {
  font-size: 133%;
  margin-bottom: 30px;
  text-align: center;
}

.drive-welcome.page .drive-welcome-text {
  font-size: 13px;
  margin-bottom: 24px;
}

.drive-welcome.page .drive-welcome-links {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  margin: 12px 0;
  max-width: 525px;
  width: 100%;
}

.drive-welcome.page .primary,
.drive-welcome.page .primary:hover {
  background-color: rgb(51, 103, 214);
  color: white;
}

.drive-welcome.page .secondary {
  color: rgb(100, 100, 100);
}

.drive-welcome.page .secondary:hover {
  color: rgb(51, 103, 214);
}

body:not([type='full-page']) .drive-welcome.page .drive-welcome-wrapper {
  background-position: 0 0;
}

body:not([type='full-page']) .drive-welcome.page .drive-welcome-icon {
  height: 200px;
}
